package fit.conceptmap.entities;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the link database table.
 * 
 */
@Entity
@NamedQuery(name="Link.findAll", query="SELECT l FROM Link l")
public class Link implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private String idlink;

	private int from;

	private String point;

	private String text;

	private int to;

	//bi-directional many-to-one association to Relationship
	@ManyToOne
	@JoinColumn(name="idRelationship")
	private Relationship relationship;

	public Link() {
	}

	public String getIdlink() {
		return this.idlink;
	}

	public void setIdlink(String idlink) {
		this.idlink = idlink;
	}

	public int getFrom() {
		return this.from;
	}

	public void setFrom(int from) {
		this.from = from;
	}

	public String getPoint() {
		return this.point;
	}

	public void setPoint(String point) {
		this.point = point;
	}

	public String getText() {
		return this.text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public int getTo() {
		return this.to;
	}

	public void setTo(int to) {
		this.to = to;
	}

	public Relationship getRelationship() {
		return this.relationship;
	}

	public void setRelationship(Relationship relationship) {
		this.relationship = relationship;
	}

}